Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pass-the-sha1 for non domain joined machines #21

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rxwx
Copy link
Contributor

@rxwx rxwx commented Jan 5, 2023

This PR allows the user to specify the /password flag in SHA1 format when the machine is not domain-joined (i.e. local). These SHA1 passwords are calculated as SHA1(UTF16LE(password)), which is output by mimikatz' sekurlsa::msv. This feature mirrors the functionality already provided to support PtH for NTLM on domain-joined machines.

Note that when using the masterkeys command with a /target specified (e.g. a path to directory containing masterkeys), SharpDPAPI will not attempt to detect domain-joined-ness via the BK file (since it may not exist simply because the user didn't copy it from the target system) - therefore I've also added the /local flag which can be specified along with /target to force the SHA1 path.

rxwx and others added 5 commits January 4, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant